package cn.com.shaom.learning.sb.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * ClassName: TypeSafeConfig
 * Description: 类型安全的配置：通过 @ConfigurationProperties 实现
 * Date: 2017/12/20 20:39 【需求编号】
 *
 * @author Shaom
 * @version V1.0.0
 */
@Getter
@Setter
//@Component
@ConfigurationProperties(prefix = "commons.config.book")
public class TypeSafeConfig {

    private String name;

    private String author;
}
